<?php

    $email = isset($_REQUEST['email']) ? $_REQUEST['email'] : "";

    if ( $link == "logout.html" or $link == "passwort-vergessen.html" or $link == "rg-frei.html" or $link == "index.html" or $link == "/" )
    { echo '<form name="" action="login.html" method="post" >'; }
    else
    { echo '<form name="" action="'. $_SERVER['PHP_SELF']. '" method="post">'; }
    
    echo '<div class="headerlogin">';
    echo '<input type="text" name="username" size="25" maxlength="50" class="inputtop1" value="';
    // Content, if form was not completed
    if ( $email <> '' ) { echo $email; }else{ echo 'E-Mail'; }
    echo '" onClick=this.value="" />';
    echo "<p><a href='registrieren.html'>Registrieren&nbsp;</a></p>";
    echo '</div>';
    echo '<div class="headerlogin">';
    echo '<input type="password" name="password" value="***" size="25" maxlength="40" class="inputtop2" onClick=this.value="" />';
    echo "<p><a href='passwort-vergessen.html'>Passwort vergessen</a></p>";
    echo '</div>';
    echo '<div id="headerbutton">';
    echo '<input type="image" src="bilder/buttons/login.png" name="logini" alt="Anmelden" title=" Anmelden " />';
    echo '</div>';
    echo '</form>';
?>